https:/​/​rest.course-source.net/​user/​check/​{LoginID}

GET

Check the status of the User

1 = active/enabled
0 = disabled
-1 = not found
{LoginID}

Response
  

POST

Check the User & Password and if valid include the user in the authentication token

If the result is anything other than 1 the token returned will no longer contain a user if the token in the request header contained one
Also all previous tokens containing the user and session will be invalidated unless the result is 1

1 = active/enabled & user added to token (replaces the previous user in the token if the token already contained a user)
0 = disabled
-1 = not found
-2 = password incorrect

Example Payload: {"Password":"9/UwpInj,ho8chfXwp0=@RC;v:~K0GK2MB7l|E`gX4Xj=y9xE4[QS;K9!cUYa3l"}
{LoginID}

Response